package com.youlai.boot.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.common.annotation.DataPermission;
import com.youlai.boot.system.model.entity.SpotRecord;
import com.youlai.boot.system.model.form.SpotRecordForm;
import com.youlai.boot.system.model.query.SpotRecordQuery;
import com.youlai.boot.system.model.vo.SpotRecordExcelVO;
import com.youlai.boot.system.model.vo.SpotRecordVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 出票数据Mapper接口
 *
 * @author lwb
 * @since 2025-06-29 22:35
 */
@Mapper
public interface SpotRecordMapper extends BaseMapper<SpotRecord> {

    /**
     * 获取出票数据分页数据
     *
     * @param page 分页对象
     * @param queryParams 查询参数
     * @return
     */
    @DataPermission(deptAlias = "sr", userAlias = "sr")
    Page<SpotRecordVO> getSpotRecordPage(Page<SpotRecordVO> page, SpotRecordQuery queryParams);

    /**
     *
     * @param id
     * @return
     */
    @DataPermission(deptAlias = "sr", userAlias = "sr")
    SpotRecordForm getSpotRecordFormData(@Param("id") Long id);

    /**
     *
     * @param queryParams
     * @return
     */
    @DataPermission(deptAlias = "sr", userAlias = "sr")
    List<SpotRecordExcelVO> exportList(@Param("queryParams") SpotRecordQuery queryParams);

    /**
     *
     * @param queryParams
     * @return
     */
    @DataPermission(deptAlias = "sr", userAlias = "sr")
    List<SpotRecordForm> getCount(@Param("queryParams")SpotRecordQuery queryParams);
}
